import instance from "../utils/request";

//获取轮播图数据
export function bannerdata() {
  return instance({
    url: "/admin/banner/list",
    method: "get",
  });
}

//删除单条轮播图数据
export function delbannerdata(id) {
  return instance({
    url: `/admin/banner/delete?adminid=${id}`,
    method: "get",
  });
}

//新增轮播图数据

export function addbanner(obj) {
  return instance({
    url: "/admin/banner/add",
    method: "post",
    data: obj,
  });
}
